package com.gewu.bluetoothflow.db

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.Ignore
import androidx.room.PrimaryKey

/**
 *
 * */
@Entity(tableName = "t_device")
data class DeviceInfoBean(
    //var strId: String, var name: String, var mac: String, var rssi: Int,var lastTime:String
    @PrimaryKey(autoGenerate = true)
    var id: Int?= null,
    @ColumnInfo(name = "strId")   //设备id
    var strId: String = "",
    @ColumnInfo(name = "name")  //设备名称
    var name: String = "",
    @ColumnInfo(name = "mac")  // MAC 地址
    var mac: String = "",
    @ColumnInfo(name = "rssi")  // 信号强度
    var rssi: String = "",
    @ColumnInfo(name = "lastTime")  //最后连接时间
    var lastTime: Long = System.currentTimeMillis(),
    @Ignore
    var enableConnect:Boolean = false //是否可连接
){

}